package com.djl.supports;

import com.djl.annotation.SqlStatement;
import org.apache.ibatis.mapping.SqlCommandType;

@SqlStatement(value = "selectByQuery", commandType = SqlCommandType.SELECT, resultType = Object.class)
public class SelectByQueryStatement{

    public String sql(String table,String queryField) {
        return String.format("select %s from %s ${entitySqlBuilder.condition}",queryField,table);
    }
}